<template>
  <div id="freevideo">
    <div class="main">
      <Row>
        <Col span="24">
        <!-- 大标题 -->
          <p class="maxTitle">{{player.maxTitle}}</p>
        </Col>
      </Row>
      <Row>
        <Col span="24">
        <!-- 视频组件 -->
          <Video id="free" :videUrl="player.url" width="width:100%" height="height:200px" />
        </Col>
      </Row>
    </div>
  </div>
</template>

<script>
//导入视频组件
import Video from "../../components/video/video";
//导入iview-ui组件
import { Row, Col } from "view-design";

export default {
  name: "freevideo",
  //组件注册
  components: {
    Row,
    Col,
    Video
  },
  //传入属性
  props:['player'],
  data() {
    return {
      
    };
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
  beforeCreate() {}, //生命周期 - 创建之前
  beforeMount() {}, //生命周期 - 挂载之前
  beforeUpdate() {}, //生命周期 - 更新之前
  updated() {}, //生命周期 - 更新之后
  beforeDestroy() {}, //生命周期 - 销毁之前
  destroyed() {}, //生命周期 - 销毁完成
  activated() {} //如果页面有keep-alive缓存功能，这个函数会触发
};
</script>

<style scoped>
/* 局部样式修改 */
.main {
  background: url("./image/freevideo/light-bg2.png") no-repeat;
  background-size: 100% 100%;
  text-align: center;
  font-size: 20px;
  color: white;
  padding: 50px 20px 50px;
}
.maxTitle {
  padding-bottom: 20px;
}
</style>